package xiao.ke.sbdemo.model;/**
 * @author XuXiaoK
 * @create 2019-11-25 21:42
 */

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.autoconfigure.domain.EntityScan;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

/**
 *@Author XiaoKe
 *@Date 2019/11/25 21:42
 *@Description TODO
 */
@Entity
@NoArgsConstructor
@Data
@AllArgsConstructor
public class Person {
    @Id
    @GeneratedValue
    private Long id;
    @Column(unique = true)
    private String name;
    private Integer age;
}
